<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title><% if @article %><%=h @article.title %> on <% end %> Restolog</title>
  <%= stylesheet_link_tag "standard" %>
  <%= javascript_include_tag %>
</head>
<body>
  <div id="wrapper">
    <div class="title"><%= link_to 'Restolog', home_url %></div>
    <div id="main">
      <%= yield %>
    </div>
    <div id="sidebar">
      <h3>Articles</h3>
      <ul>
        <li><%= link_to 'Front page', home_url %></li>
        <li><%= link_to 'Post article', new_article_url %></li>
        <li><%= link_to 'Tag list', tags_url %></li>
        <li><%= link_to 'By user', users_url %></li>
      </ul>
      <br/>
      <h3>Users</h3>
      <ul>
      <% if logged_in? -%>
        <li><%= current_user.login %></li>
        <li><%= link_to 'Logout', logout_url %></li>
      <% else -%>
        <li><%= link_to 'Login', login_url %></li>
        <li><%= link_to 'Signup', signup_url %></li>
      <% end -%>
      </ul>
      <br/>
      <h3>Validate</h3>
      <ul>
        <li><a href="http://validator.w3.org/check?uri=referer">XHTML 1.0</a></li>
        <li><a href="http://jigsaw.w3.org/css-validator/validator?uri=<%= home_url %>">CSS</a></li>
      </ul>
      <br/>
      <h3>Syndicate</h3>
      <ul>
        <li><a href="/articles.atom">Atom 3.0</a></li>
        <li><a href="/articles.rss">RSS 2.0</a></li>
      </ul>
    </div>
  </div>
</body>
